/**
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '~/styles/variables';

.outputSection {
  height: 100%;
  width: 100%;

  &.mobile {
    padding-bottom: 100px;

    .stickyCol {
      display: none;
    }
  }

  .disclaimer {
    color: $semidark_grey;
    font-size: 1.1rem;
  }

  .headActions {
    display: flex;
  }

  .outputsWrapper {
    display: flex;
    grid-gap: 1.9rem;
    padding-bottom: 10rem;

    .col {
      flex: 0 0 100%;
      width: 100%;

      @media (min-width: $medium) {
        flex: 0 1 50%;
        width: 50%;
      }
    }

    .stickyCol > div {
      position: sticky;
      top: 5.8rem + 1.5rem;
    }
  }

  .heading {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 2rem;

    span {
      padding-right: 2rem;
    }
    @media (min-width: $medium) {
      align-items: center;
      flex-direction: row;

      span {
        padding-right: 0;
      }
    }
  }

  header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.4rem;
    padding-top: 1.4rem;

    @media (min-width: $medium) {
      align-items: center;
      margin-bottom: 0.6rem;
    }

    h2 {
      display: inline-block;
    }

    .filters {
      align-items: center;
      display: flex;
      gap: 1rem;
    }

    .actions {
      align-items: center;
      display: flex;
      gap: 1rem;
      position: relative;

      &::before {
        background: $mid_grey;
        content: '';
        display: block;
        height: 3rem;
        margin-left: 1rem;
        width: 0.1rem;
      }

      button,
      a {
        color: $mid_grey;
        transition: color 0.125s ease-in-out;

        &:hover {
          color: $light;
        }
      }
    }

    h2 {
      color: $light;
      flex: 1;
      font-family: $font_mono;
      font-size: 14px;
    }

    @media screen and (min-width: $medium) {
      margin-bottom: 24px;
      padding-top: 24px;
    }
  }

  :global(.masonryGrid) {
    display: flex;
    margin-left: -13px; // Gutter size offset
    width: auto;
  }

  :global(.masonryGridColumn) {
    background-clip: padding-box;
    padding-left: 13px; // Gutter size
    & > div {
      margin-bottom: 13px;
    }
  }
}
